<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link rel="stylesheet" href="css/main.css">
  <link rel="stylesheet" href="//at.alicdn.com/t/font_604771_sbtref93wnb6s9k9.css"/>
  <title>WebSocket 聊天室</title>
</head>
<body>

<div class="m-chatBox" id="js-chatBox">
  <div class="bg" id="js-bg"></div>
  <div class="sider">
    <h3 class="title">当前在线人数：<span id="js-conut">X</span>人</h3>
    <dl>
      <dt>在线列表</dt>
      <dd><ul id="js-userList"></ul></dd>
    </dl>
  </div>
  <div class="box">
    <div class="header">
      <div class="header-title">
        <span>多人聊天室</span>
        (<span id="js-conut2">X</span>)
        <i id="js-openBtn" class="iconfont icon-shejiao"></i>
      </div>
    </div>
    <div class="list">
      <ul id="js-messageBox"></ul>
    </div>
    <div class="footer">
      <div class="text"><textarea id="js-text"></textarea></div>
      <div class="enter" id="js-enter">发送信息</div>
    </div>
  </div>
</div>

<div class="m-login" id="js-login">
  <div class="box">
    <div class="input"><input type="text" id="js-loginName" placeholder="请输入用户名"></div>
    <div class="btn" id="js-loginBtn">LOGIN</div>
  </div>
</div>
<script src="js/socket.io.js"></script>
<script src="js/main.js"></script>
</body>
</html>